<script>
  var href = location.href;
  var i = href.indexOf("github.io/");
  if(i>0)
    href = "../uweb";
  else
    href = "https://jamesfengcao.codeberg.page";
  location.href = href;
</script>
